package com.xfcy.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xfcy.blog.entity.Photo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 照片(Photo)表数据库访问层
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:06
 */
@Repository
public interface PhotoMapper extends BaseMapper<Photo> {

    /**
     * 移动到其他相册
     * @param ids
     * @param albumId
     */
    void movePhoto(@Param("ids") List<Integer> ids, @Param("albumId") Integer albumId);

    List<String> selectListByIds(@Param("ids") List<Integer> ids);
}

